From: Jasper St. Pierre Date: Tue, 30 Sep 2014 06:19:55 +0000 (-0600) Subject: search: Match an empty array, not a null one X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2063 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2cefc8be2717da9d6a1dff408043052d8d2cf70b;p=gnome-shell.git search: Match an empty array, not a null one When the terms are missing, we pass an empty array, not a null one. --- diff --git a/js/ui/search.js b/js/ui/search.js index ec00bae10..709484dae 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -492,7 +492,7 @@ const SearchResults = new Lang.Class({ this._cancellable.cancel(); this._cancellable.reset(); - if (!terms) { + if (terms.length == 0) { this._clearSearchTimeout(); return; }